package com.zijidelu.luframework.utils.lang.reflect.generic;

import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;

/**
 * 解析后的通配符类型
 *
 * @author zijidlu
 * @datetime 2025/10/18 23:20
 */
public class ResolvedWildcardType implements WildcardType {
    private final Type[] upperBounds;
    private final Type[] lowerBounds;

    ResolvedWildcardType(Type[] upperBounds, Type[] lowerBounds) {
        this.upperBounds = upperBounds;
        this.lowerBounds = lowerBounds;
    }

    @Override
    public Type[] getUpperBounds() {
        return this.upperBounds;
    }

    @Override
    public Type[] getLowerBounds() {
        return this.lowerBounds;
    }
}